package ${packageUri}.web.service;

import com.zdww.cd.sxdv.web.vo.res.ServiceResponse;
import com.github.pagehelper.PageInfo;
import ${packageUri}.web.dto.${className}DTO;
import ${packageUri}.web.entity.${className};

/**
 * @ClassName ${className}Service
 * @Description ${tableDesc}
 * @Author duqc
 * @Date ${time}
 **/
public interface ${className}Service {

    /**
     * 通过id查询详情信息
     *
     * @param id 唯一ID
     * @return ${className}
     */
     ServiceResponse<${className}> getInfoById(String id);

     /**
     * 列表查询
     *
     * @param ${className?uncap_first}DTO 参数
     * @return PageInfo
     */
     ServiceResponse<PageInfo<${className}>> list(${className}DTO ${className?uncap_first}DTO);

     /**
      * 删除（逻辑删除）
      *
      * @param  id 唯一ID
      * @return ServiceResponse
      */
     ServiceResponse delete(Long id);

     /**
     * 新增
     *
     * @param  ${className?uncap_first} 保存数据
     * @return ServiceResponse
     */
     ServiceResponse insert(${className} ${className?uncap_first});

     /**
     * 修改
     *
     * @param  ${className?uncap_first} 修改数据
     * @return ServiceResponse
     */
     ServiceResponse update(${className} ${className?uncap_first});

}
